package com.design.mode.single;

import org.junit.jupiter.api.Test;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-04-03 15:47:47
 */
public class SingleTest {

    @Test
    public void test1() {
        Single01 s1 = Single01.getInstance();
        Single01 s2 = Single01.getInstance();
        System.out.println("s1.hashCode() = " + s1.hashCode());
        System.out.println("s2.hashCode() = " + s2.hashCode());
    }
}
